load("//tools:defaults.bzl", "jasmine_test", "ts_project")

ts_project(
    name = "test_lib",
    testonly = True,
    srcs = glob(
        ["**/*.ts"],
    ),
    visibility = ["//packages/localize/tools/test:__subpackages__"],
    deps = [
        "//:node_modules/@babel/generator",
        "//:node_modules/@types/babel__core",
        "//:node_modules/@types/babel__generator",
        "//:node_modules/tinyglobby",
        "//packages:types",
        "//packages/compiler",
        "//packages/compiler-cli/private",
        "//packages/compiler-cli/src/ngtsc/file_system",
        "//packages/compiler-cli/src/ngtsc/file_system/testing",
        "//packages/compiler-cli/src/ngtsc/logging/testing",
        "//packages/localize",
        "//packages/localize/src/utils",
        "//packages/localize/tools",
        "//packages/localize/tools/test/helpers",
    ],
)

jasmine_test(
    name = "test",
    data = [
        ":test_lib",
        "//:node_modules/tinyglobby",
    ],
)
